function execute(cmd){
  const exec = require('child_process').exec;
  exec(cmd,(err,stdout,stderr)=>{
   process.stdout.write(stdout);
   })
}

execute('echo "hello world"');
